package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"ruoyi-vue-pro-go/internal/model/entity"
)

type GetListReq struct {
}
type GetListRes struct {
	List []*entity.SystemUserRole `json:"list" dc:"user role list"`
}

type GetListByUserIdReq struct {
	g.Meta `path:"/admin-api/system/permission/list-user-roles" method:"get" tags:"User" summary:"Get users"`
	UserId int64 `dc:"user id"`
}
type GetListByUserIdRes struct {
	List []*entity.SystemUserRole `json:"list" dc:"role list"`
	Ids  []int64                  `json:"ids" dc:"role ids"`
}

type AssignUserRoleReq struct {
	g.Meta  `path:"/admin-api/system/permission/assign-user-role" method:"post" tags:"User" permission:"system:permission:assign-user-role" summary:"Assign user role"`
	UserId  int64   `v:"required" dc:"user id"`
	RoleIds []int64 `v:"required" dc:"role ids"`
}
type AssignUserRoleRes struct{}
